﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Passwords.Models
{
    [DataContract]
    public class SyncItem
    {
        /// <summary>
        /// Gets or sets the id of the item (password or category id).
        /// </summary>
        [DataMember]
        public string Id { get; set; }

        /// <summary>
        /// Gets or sets when the item was synced last time.
        /// </summary>
        [DataMember]
        public DateTime SyncDate { get; set; }

        /// <summary>
        /// Gets or sets whether the entity with the specified id was deleted from the device.
        /// </summary>
        [IgnoreDataMember]
        public bool IsAvailable { get; set; }
    }
}
